<?php 
/* SVN FILE: $Id$ */
/* Shop Test cases generated on: 2009-09-06 18:49:02 : 1252255742*/
App::import('Model', 'Shop');

class ShopTestCase extends CakeTestCase {
	var $Shop = null;
	var $fixtures = array('app.shop', 'app.shop_article');

	function startTest() {
		$this->Shop =& ClassRegistry::init('Shop');
	}

	function testShopInstance() {
		$this->assertTrue(is_a($this->Shop, 'Shop'));
	}

	function testShopFind() {
		$this->Shop->recursive = -1;
		$results = $this->Shop->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Shop' => array(
			'id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>